home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 February / PCWorld_2000-02_cd.bin / Software / Vyzkuste / xsetup / _SETUP.2 / Group3 / XQ Show on Desktop 3.xpl < prev    next >
Text File  |  1999-08-15  |  1KB  |  53 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="6"
  3. "COUNT"="2"
  4. "UIPATH"="Appearance\Desktop\Icons"
  5. "NAME"="Visible Icons #3"
  6. "LANGUAGE"="VBScript"
  7. "VERSION"="1.03"
  8. "TEXT 1"="Internet Explorer History"
  9. "TEXT 2"="Scheduled Tasks"
  10. "DESCRIPTION 1"="To show an item on the desktop, activate it. To hide it, deactivate it."
  11. "DESCRIPTION 2"="It might be necessary to activate the desktop and pressing the F5 key in order to see the changes."
  12. "AUTHOR"="Xteq Systems"
  13. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  14. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
  15. "COMMENT 2"="This ain't VERLAUF!"
  16.  
  17.  
  18. sPath="HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\"
  19. sV1="{FF393560-C2A7-11CF-BFF4-444553540000}" 'Verlauf
  20. sV2="{D6277990-4C6A-11CF-8D87-00AA0060F5BF}" 'Scheduled Tasks
  21.  
  22. Sub Plugin_Initialize 
  23.  if RegPathExists(sPath & sV1) then SetUIElement 1,true
  24.  if RegPathExists(sPath & sV2) then SetUIElement 2,true
  25. End Sub
  26.  
  27. Sub Plugin_CheckData(ElementIndex)
  28. End Sub
  29.  
  30. Sub WriteIt(UIELM,VAL)
  31.  b=GetUIElement(UIELM)
  32.  if b=true then
  33.     Call RegWriteValue(sPath & VAL & "\@","",1)
  34.  else
  35.   if RegPathExists(sPath & VAL) then
  36.      Call RegDeletePath(sPath & VAL)
  37.   end if
  38.  end if
  39. End Sub 
  40.  
  41. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  42.  Call WriteIt(1,sV1)
  43.  Call WriteIt(2,sV2)
  44.  'Call WriteIt(3,sV3)
  45. End Sub
  46.  
  47.  
  48. Sub Plugin_Terminate 
  49. End Sub
  50.  
  51.  
  52.  
  53.